package org.example.task.controller;

import lombok.extern.slf4j.Slf4j;
import org.example.task.service.HelloService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;


/**
 * @ClassName SendController
 * @Description TODO
 * @Author Jim
 * @Date 2021/1/20 14:03
 * @Version 1.0.0
 **/
@Slf4j
@RestController
@RequestMapping("/send")
public class SendController {
    @Autowired
    private HelloService helloService;

    @GetMapping("/{id}")
    public Object send(@PathVariable("id") int id) {
        log.info("send:{}", id);
        return helloService.hello("你好", id);
//        return "";

    }


}
